package com.itheima.neibulei.demo03;

public class Demo {

    public static void main(String[] args) {
        Outer.i=10;
        System.out.println(Outer.i);
        Outer.sing();
       /* Outer.Inner inner = new Outer.Inner();
        inner.j=20;
        System.out.println(inner.j);
        inner.dance();*/
      /* Outer.Inner.j=10;
       Outer.Inner.dance();*/


    }


}
class Outer {
    static int i;

    public static void sing() {
        System.out.println(i);

    }

    static class Inner {
        //内部类的成员 想要静态  自己所在的类 必须先静态
        int j;

        public static void dance() {
            System.out.println(i);
        }
    }
}
